package com.guigu.tms.commons.entity.work;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.guigu.tms.commons.entity.oms.Order;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 运单表
 * </p>
 *
 * @author zwj
 * @since 2022-09-27
 */
@TableName("pd_transport_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TransportOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 订单ID
     * 和订单表的一对一关系对象
     */
    private String orderId;
    @TableField(exist = false)
    private Order order;
    /**
     * 运单状态(1.新建 2.已装车 3.到达 4.到达终端网点 5.已签收 6.拒收)
     */
    private Integer status;

    /**
     * 调度状态(1.待调度2.未匹配线路3.已调度)
     */
    private Integer schedulingStatus;

    /**
     * 创建时间
     */
    private Date createTime;

}
